package com.cykj.v_m_sprintboot.serviceImpl;

import com.cykj.v_m_sprintboot.bean.TbInventory;
import com.cykj.v_m_sprintboot.mapper.TbInventoryMapper;
import com.cykj.v_m_sprintboot.service.TbInventoryService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class TbInventoryServiceImpl implements TbInventoryService {
    @Autowired
    private TbInventoryMapper tbInventoryMapper;

    @Override

    public boolean addInventoryInfo() {
        return tbInventoryMapper.addInventoryInfo();
    }

    @Override
    public List<TbInventory> getInventoryList(TbInventory tbInventory, RowBounds row) {
        return tbInventoryMapper.getInventoryList(tbInventory,row);
    }

    @Override
    public int countInventoryInfo(TbInventory tbInventory) {
        return tbInventoryMapper.countInventoryInfo(tbInventory);
    }

    @Override
    public TbInventory inventoryInfo(String goodsName) {
        return tbInventoryMapper.inventoryInfo(goodsName);
    }

    @Override
    public boolean updateInventoryInfo(TbInventory tbInventory) {
        return tbInventoryMapper.updateInventoryInfo(tbInventory);
    }

    @Override
    public boolean addLoneData(TbInventory tbInventory) {
        return tbInventoryMapper.addLoneData(tbInventory);
    }

    @Override
    public List<String> getInventoryGoodsName() {
        return tbInventoryMapper.getInventoryGoodsName();
    }
}
